package com.carl.zeus.dao.system;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.carl.zeus.model.system.SysRole;

import java.util.List;
import java.util.Map;

public interface SysRoleMapper extends BaseMapper<SysRole> {

    List<SysRole> selectUserRolesByUserId(Long userId);

    Integer updateRoleByStatus(Map<String, Object> map);

    List<SysRole> selectDeceasedUserRoleByRoleIdList(Long[] roleId);

    List<SysRole> selectUserRoleByRoleIdList(Long[] roleId);

    List<SysRole> selectRoleListByStatus();
}